import { Guard } from '../../constants/guard';

export default [
  {
    path: '/router',
    name: 'router',
    meta: {
      title: '分组管理',
      svg: 'router',
      layout: true,
      guardList: [
        Guard.RouterManage,
        Guard.RouterView
      ]
    },
    redirect: '/router/list'
  },
  {
    path: '/router/list',
    name: 'routerList',
    meta: {
      title: '分组列表',
      svg: 'router',
      layout: true,
      parentMenu: 'router',
      guardList: [Guard.RouterManage, Guard.RouterView]
    },
    component: () => import('../../views/router/list/index.vue')
  },
  {
    path: '/router/device/cast',
    name: 'deviceCast',
    meta: {
      title: '分组编辑',
      svg: 'router',
      layout: true,
      hidden: true,
      parentMenu: 'router',
      guardList: [Guard.RouterManage, Guard.RouterView]
    },
    component: () => import('../../views/router/deviceCast/index.vue')
  }
];
